import ReactDOM from 'react-dom'
import React, { Component, createContext } from 'react'



const Hello = (props) => {
  console.log(props.children);
  return <div>Hello</div>
}

export default Hello

// 根组件
class App extends Component {
  render() {
    return (
      <div className="app" >
        <Hello>
          子节点
          <span>123</span>
        </Hello>
      </div>

    )
  }
}

ReactDOM.render(<App />, document.getElementById('root'))